<form class="layui-form layui-form-pane" action="" id="addForm" lay-filter="addFormFilter" style="display: none;padding:10px;">
    <#if columns??>
        <#list columns as column>
            <#if column.needInsert>
                <#if column.hideInAddForm>
    <input type="hidden" name="${column.field!}"/>
                <#else>
                    <#if column.inputType=='select'>
    <div class="layui-form-item">
        <label class="layui-form-label">${column.title!}</label>
        <div class="layui-input-block">
            <select lay-ignore name="${column.field!}" <#if column.required>lay-verify="required"</#if> <#if !column.editable> editeable="false"</#if><#if !column.submit> submit="false"</#if>>
                <option value="" selected>请选择</option>
            <#--这里自己改一下值-->
                <option value="val1">val1</option>
                <option value="val2">val2</option>
            </select>
        </div>
    </div>
                    <#elseif column.inputType=='radio'>
    <div class="layui-form-item" pane>
        <label class="layui-form-label">${column.title!}</label>
        <div class="layui-input-block">
            <input type="radio" name="${column.field!}" value="1" title="Val1" lay-filter="${column.field!}Filter" checked >
            <input type="radio" name="${column.field!}" value="2" title="Val2" lay-filter="${column.field!}Filter">
        </div>
    </div>
                    <#elseif column.inputType=='checkbox'>
    <div class="layui-form-item" pane>
        <label class="layui-form-label">${column.title!}</label>
        <div class="layui-input-block">
            <input type="checkbox" name="${column.field!}" value="1" title="Val1" lay-skin="primary" lay-filter="${column.field!}Filter" checked>
            <input type="checkbox" name="${column.field!}" value="2" title="Val2" lay-skin="primary" lay-filter="${column.field!}Filter">
            <input type="checkbox" name="${column.field!}" value="3" title="Val3" lay-skin="primary" lay-filter="${column.field!}Filter" disabled>
        </div>
    </div>
                    <#elseif column.inputType=='switch'>
    <div class="layui-form-item" pane>
        <label class="layui-form-label">${column.title!}</label>
        <div class="layui-input-block">
            <input type="checkbox" name="${column.field!}" value="1" lay-skin="switch" lay-text="ON|OFF" lay-filter="${column.field!}Filter" checked>
        </div>
    </div>
                    <#elseif column.inputType=='date'>
    <div class="layui-form-item">
        <label class="layui-form-label">${column.title!}</label>
        <div class="layui-input-block">
            <input type="text" lay-verify="date<#if column.required> required</#if>" id="${column.field!}_id" name="${column.field!}"<#if !column.editable> editeable="false"</#if><#if !column.submit> submit="false"</#if><#if column.maxLength!='-1'> maxlength="${column.maxLength!}"</#if><#if column.placeholder??> placeholder="${column.placeholder!}"</#if> autocomplete="off" class="layui-input">
        </div>
    </div>
                    <#else>
    <div class="layui-form-item">
        <label class="layui-form-label">${column.title!}</label>
        <div class="layui-input-block">
            <input type="text" name="${column.field!}"<#if column.required> lay-verify="required"</#if><#if !column.editable> editeable="false"</#if><#if !column.submit> submit="false"</#if><#if column.maxLength!='-1'> maxlength="${column.maxLength!}"</#if><#if column.placeholder??> placeholder="${column.placeholder!}"</#if> autocomplete="off" class="layui-input">
        </div>
    </div>
                    </#if>
                </#if>
            </#if>
        </#list>
    </#if>
    <!--隐藏的表单提交按钮，用于触发表单验证-->
    <input type="submit" class="layui-hide" lay-submit lay-filter="submitAddFromFilter"/>
</form>